﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="Deepcode.QueryPatterns.Redux.Domain" assembly="Deepcode.QueryPatterns.Redux">

	<class name="Address" table="Address" schema="person">

		<id name="Id">
			<column name="AddressId" sql-type="int" not-null="true"/>
			<generator class="identity"/>
			
		</id>

		<property name="City" column="City"/>
		<property name="PostCode" column="PostalCode"/>

		<many-to-one name="StateProvince" column="StateProvinceId" class="StateProvince" />
	</class>

</hibernate-mapping>
